package pl.enigmatic.parser.markup;

import pl.enigmatic.parser.xml.ParsingInfo;
import pl.enigmatic.parser.xml.XMLParserExtension;


public class NullExtension extends BasicMarkupExtension {

	public static final NullExtension instance = new NullExtension();

	private NullExtension() {
		super("Null");
	}

	@Override
	public boolean parse(Object target, MarkupProperties props, ParsingInfo<?> info, XMLParserExtension handler) {
		return handler.setParsedProperty(target, info, null);
	}

	@Override
	public Object createInstance(MarkupProperties props, ParsingInfo<?> info) {
		return null;
	}

}
